<?php /* Smarty version 2.6.18, created on 2016-12-09 08:50:19
         compiled from homework/m.homework.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--头部 end-->
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-right:10%;">
        <div  class="col-xs-sm  text-right" > <a href="index.php?a=homework.add&staff_id=<?php echo $this->_tpl_vars['staff_id']; ?>
" class="btn btn-primary btn-sm" style="float:right;">增加</a></div>
    </div><!--row  end-->




    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        <!-- <h5>总计44条信息</h5>-->
        <?php $_from = $this->_tpl_vars['homework_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>

        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>

                <td>班级</td>
                <td><?php echo $this->_tpl_vars['value']['class_name']; ?>
</td>

            </tr>

            <tr>

                <td>学科</td>
                <td><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</td>

            </tr>

            <tr>

                <td>日期</td>
                <td><?php echo $this->_tpl_vars['value']['homework_date']; ?>
</td>

            </tr>
            <tr>

                <td>作业内容</td>
                <td><?php echo $this->_tpl_vars['value']['homework_content']; ?>
</td>

            </tr>


            <tr>
                <td>操作</td>
                   <td> <a type="button" class="btn btn-danger  " href="index.php?a=homework.update&homework_id=<?php echo $this->_tpl_vars['value']['homework_id']; ?>
" >修改</a> </td>
            </tr>

        </table>
        <?php endforeach; endif; unset($_from); ?>





    </div>


</div><!--container  end-->

<!--主体部分  end-->
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<!--底部end-->
<!--日历-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<script>
    $(function() {
        $( "#start_time" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#end_time" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#end_time" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#start_time" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
    });
</script>
</body>
</html>